package co.com.jaco.web.aas;

import javax.ejb.EJB;

import co.com.jaco.bl.aas.admin.UsersAdminFacade;
import co.com.jaco.dto.aas.PersonDTO;

public class UserBean {
	private PersonDTO person;
	private final String SUCCESS = "success";
	@EJB
	private UsersAdminFacade facade;

	public UserBean()
	{
		person = new PersonDTO();
	}
	
	public String createUser() {
		facade.createPrincipal(person);

		return SUCCESS;
	}

	public PersonDTO getPerson() {
		return person;
	}

	public void setPerson(PersonDTO person) {
		this.person = person;
	}

}
